#ifndef _NAMED_KEY_H
#define _NAMED_KEY_H

#include <string>
#include"keys.h"

using namespace std;

struct NamedKey
{
	string name;

	union
	{
		Keys key;
		MouseButtons mouse;
	};

	NamedKey(void)
	{
		name = "";
		key = (Keys)0;
	}
	NamedKey(string name, Keys key)
	{
		this->name = name;
		this->key = key;
	}
	NamedKey(string name, MouseButtons key)
	{
		this->name = name;
		this->mouse = key;
	}

	bool operator <(const NamedKey other) const
	{
		if (other.key > key)
			return true;

		return false;
	}
};

#endif